home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / public / bit / help / ibbind.hlp < prev    next >
Text File  |  1994-08-01  |  1KB  |  42 lines

  1.  
  2. @C1@c@b@_ Image Browser Binding
  3.  
  4.      Launch a shell command that operates on marked files.
  5.  
  6. @b Interaction
  7.     Text entered in the Label field will be used to label the
  8.     button and text entered in the Command field is taken to be
  9.     the shell command. Click on field to activate.
  10.  
  11.     To make current binding the default upon start up of any
  12.     browser, click on the Save button.
  13.  
  14. @ Details
  15.     The shell command can take the form
  16.  
  17. @f      cmd [opt1] [?] [opt2]
  18.   
  19.      ? has special meaning in the binding in that it represents
  20.      the marked file(s). If MultiArgs is set, ? represents all
  21.      marked files otherwise a loop over each marked file will be
  22.      executed.
  23.  
  24.      For example, move all marked files to a permanent directory:
  25.  
  26. @f     mv ? /usr/people/me/perm_dir
  27.  
  28.      If ? is missing in the binding, marked files will be appended
  29.      to the end, e.g, to delete all marked files, the following
  30.      binding can be used:
  31.  
  32. @f    rm -f
  33.  
  34.      The binding is not limited to simple command, any command
  35.      that can be executed by the shell can be used with ?
  36.      substituted by marked files.
  37.  
  38.      A meaningless example:
  39.  
  40. @f    for i in  ?;  do touch $i; done
  41.  
  42.